function spmGet(g, h) {
    var m = window.location.href.toLowerCase();
    var e = "";
    var f = "";
    var l = new Object();
    var a = null;
    if (m.indexOf("?") != -1) {
        var d = m.split("?")[1];
        var k = d.split(/&|\?|#/g);
        for (var b = 0; b < k.length; b++) {
            l[k[b].split("=")[0]] = unescape(k[b].split("=")[1])
        }
    }
    e = l.refid ? l.refid: g;
    f = l.spm ? l.spm: h;
    a = "http://tracklog.17usoft.com/scenery/SceneryTrackService.ashx?s=" + f + "&r=" + e;
    if (f) {
        var c = document.createElement("script");
        c.src = a;
        var j = document.getElementsByTagName("script")[0];
        j.parentNode.insertBefore(c, j)
    }
    return f
}
function getRefId(d) {
    var g = window.location.search.toLowerCase();
    var c = "";
    var f = new Object();
    if (g.indexOf("refid") != -1) {
        var e = g.substr(1);
        e = e.split("&");
        for (var b = 0; b < e.length; b++) {
            f[e[b].split("=")[0]] = unescape(e[b].split("=")[1])
        }
        c = f.refid
    } else {
        // var a = fish.cookie.get("CNSEInfo").toLowerCase() == "refid" ? false: fish.cookie.get("CNSEInfo");
        // c = a ? (fish.cookie.get("CNSEInfo").split("RefId=")[1].split("&")[0] == 0 ? d: fish.cookie.get("CNSEInfo").split("RefId=")[1].split("&")[0]) : d
    }
    return c
}
function setRefId(b, c) {
    var a = getRefId(b);
    spmGet(a, c)
}
setRefId("", "");